﻿using Volo.Abp.Domain.Services;

namespace YaAppoint.Appointments.Schedules.TimeIntervals
{
    /// <summary>
    /// 预约时段领域服务
    /// </summary>
    public class TimeIntervalManager: DomainService
    {
        /// <summary>
        /// 新建预约时段
        /// </summary>
        public  string GenerateName(TimeInterval timeInterval)
        {
             return  $"{timeInterval.StartTime.ToString(@"hh\:mm")} - {timeInterval.EndTime.ToString(@"hh\:mm")}";
        }
    }
}
